Range.classPrototype.iterator

Instance of

Function

Return value

/*Iterator*/

Description

Returns an iterator that iterates over the elements the of the range.

Example

let it = (0..10).iterator()
while (!((let x <- it.next()) is Iterator.end))
    console.write(x, " ")

Expected output

0 1 2 3 4 5 6 7 8 9